#ifndef _V_I_h_
#define _V_I_h_

#include "tim.h"


#define v_i_query_interval          200
#define v_i_query_interval_answer   50

#define i_way_max 16

typedef enum{
	query_non=0,
	query_ZT_V=1,
	query_ZT_V_ing=31,
	
	query_ZT_P=2,
	query_ZT_P_ing=32,
	
	query_ZT_Q=3,
	query_ZT_Q_ing=33,
	
	query_12I=4,
	query_12I_ing=34,
}V_I_QUERY_STEP;
typedef struct{
	V_I_QUERY_STEP v_i_query_step;
	u8 is_query_answered;
	sys_tim query_time;
}_v_i_query_state;
extern _v_i_query_state v_i_query_state;


void RS485_V_I_app(void);


#endif

